package com.xwdeshj.entity;

import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;

/**
 * 26、景区、农家乐——适合人群
 */
@Entity(name = "xw_crowd")
public class XwCrowd {

    /**
     * 适合人群id
     */
    @Column(name = "scenic_crowd_Id")
    private Integer scenicCrowdId;

    /**
     * 适合人群加密id
     */
    @Column(name = "crowd_encryptId")
    private String crowdEncryptid;

    /**
     * 适合人群（内容）
     */
    @Column(name = "crowd_desc")
    private String crowdDesc;

    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "crowd_updatetime")
    private Date crowdUpdatetime;

    /**
     * 提交时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "crowd_createtime")
    private Date crowdCreatetime;

    public XwCrowd(){

    }

    public XwCrowd(String crowdEncryptid, String crowdDesc, Date crowdUpdatetime, Date crowdCreatetime) {
        this.crowdEncryptid = crowdEncryptid;
        this.crowdDesc = crowdDesc;
        this.crowdUpdatetime = crowdUpdatetime;
        this.crowdCreatetime = crowdCreatetime;
    }

    /**
     * 获取适合人群id
     *
     * @return scenic_crowd_Id - 适合人群id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getScenicCrowdId() {
        return scenicCrowdId;
    }

    /**
     * 设置适合人群id
     *
     * @param scenicCrowdId 适合人群id
     */
    public void setScenicCrowdId(Integer scenicCrowdId) {
        this.scenicCrowdId = scenicCrowdId;
    }

    /**
     * 获取适合人群加密id
     *
     * @return crowd_encryptId - 适合人群加密id
     */
    public String getCrowdEncryptid() {
        return crowdEncryptid;
    }

    /**
     * 设置适合人群加密id
     *
     * @param crowdEncryptid 适合人群加密id
     */
    public void setCrowdEncryptid(String crowdEncryptid) {
        this.crowdEncryptid = crowdEncryptid;
    }

    /**
     * 获取适合人群（内容）
     *
     * @return crowd_desc - 适合人群（内容）
     */
    public String getCrowdDesc() {
        return crowdDesc;
    }

    /**
     * 设置适合人群（内容）
     *
     * @param crowdDesc 适合人群（内容）
     */
    public void setCrowdDesc(String crowdDesc) {
        this.crowdDesc = crowdDesc;
    }

    /**
     * 获取更新时间
     *
     * @return crowd_updatetime - 更新时间
     */
    public Date getCrowdUpdatetime() {
        return crowdUpdatetime;
    }

    /**
     * 设置更新时间
     *
     * @param crowdUpdatetime 更新时间
     */
    public void setCrowdUpdatetime(Date crowdUpdatetime) {
        this.crowdUpdatetime = crowdUpdatetime;
    }

    /**
     * 获取提交时间
     *
     * @return crowd_createtime - 提交时间
     */
    public Date getCrowdCreatetime() {
        return crowdCreatetime;
    }

    /**
     * 设置提交时间
     *
     * @param crowdCreatetime 提交时间
     */
    public void setCrowdCreatetime(Date crowdCreatetime) {
        this.crowdCreatetime = crowdCreatetime;
    }

    @Override
    public String toString() {
        return "XwCrowd{" +
                "scenicCrowdId=" + scenicCrowdId +
                ", crowdEncryptid='" + crowdEncryptid + '\'' +
                ", crowdDesc='" + crowdDesc + '\'' +
                ", crowdUpdatetime=" + crowdUpdatetime +
                ", crowdCreatetime=" + crowdCreatetime +
                '}';
    }
}